<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('demo1',function (){
    return "Hello World";
});

/**
 * 多请求路由  需要指定方式
 */
Route::match(['get','post'],'multy1',function () {
    return "I have a pen.";
});

/**
 * 支持所有请求路由
 */
Route::any('multy2',function () {
    return "I have two pen.";
});

//Route::get('member/info','MemberController@info');
Route::any('member/{id}','MemberController@info')
->where('id','[0-9]+');

Route::any('student','StudentController@query5');
